home *** CD-ROM | disk | FTP | other *** search
- Program ..............: VOL.PAS
- Version ..............: 1.01
- Implementation .......: Turbo Pascal v4.x, v5.x
- Author ...............: Vernon E. Davis
- : 17 South Centre Street
- : Merchantville, NJ 08109
- : CompuServe [71330,2705]
- References ...........: MS-DOS Encyclopedia (Microsoft Press)
- Purpose ..............: To allow the manipulation of
- : MS-DOS Disk Volume Labels.
- Type Declarations ....: Two User Types Defined ...
- : TYPE Drive = Byte;
- : The value of Drive corresponds to disk location.
- : ( 1 = A: 2 = B: 3 = C: 4 = D: etc. )
- : TYPE VolumeName = String[11];
- : Spaces allowed. Functions do not check for
- : invalid characters other than period ( . ).
- : Functions do convert all input to uppercase.
- Function Declarations : Four Functions Available ...
-
- Function ADDVOL(Drive; VolumeName) : Boolean;
- This function allows the addition of a New Volume Label on
- a disk that does not have one.
- Returns:
- FALSE if
- 1. Drive is less than 1 ( A: ) or greater than 26 ( Z: ).
- 2. Drive is an invalid specification.
- 3. Volume Label already exists.
- 4. Error in adding New Volume Label.
- TRUE if
- 1. New Volume Label has been added.
-
- Function CHGVOL(Drive; VolumeName) : Boolean;
- This function changes the current Volume Label to that of the
- New Volume Label.
- Returns:
- FALSE if
- 1. Drive is less than 1 ( A: ) or greater than 26 ( Z: ).
- 2. Drive is an invalid specification.
- 3. No Volume Label exists.
- 4. Error in changing Volume Label.
- TRUE if
- 1. Volume Label has been changed.
-
- Function DELVOL(Drive) : Boolean;
- This function allows the deletion of a Volume Label.
- Returns:
- FALSE if
- 1. Drive is less than 1 ( A: ) or greater than 26 ( Z: ).
- 2. Drive is an invalid specification.
- 3. No Volume Label exists.
- 4. Error in deleting Volume Label.
- TRUE if
- 1. Volume Label has been deleted.
-
- Function GETVOL(Drive) : VolumeName;
- This function returns the Volume Label string.
- Returns:
- NULL if
- 1. Drive is less than 1 ( A: ) or greater than 26 ( Z: ).
- 2. Drive is an invalid specification.
- 3. No Volume Label exists.
- 4. Error in reading Volume Label.
- !NULL if
- 1. Volume Label has been read.
-
- See the accompanying program, VOLTEST.PAS, for actual code.
-
- ----------------end-of-author's-documentation---------------
-
- Software Library Information:
-
- This disk copy provided as a service of
-
- The Public (Software) Library
-
- We are not the authors of this program, nor are we associated
- with the author in any way other than as a distributor of the
- program in accordance with the author's terms of distribution.
-
- Please direct shareware payments and specific questions about
- this program to the author of the program, whose name appears
- elsewhere in this documentation. If you have trouble getting
- in touch with the author, we will do whatever we can to help
- you with your questions. All programs have been tested and do
- run. To report problems, please use the form that is in the
- file PROBLEM.DOC on many of our disks or in other written for-
- mat with screen printouts, if possible. The P(s)L cannot de-
- bug programs over the telephone.
-
- Disks in the P(s)L are updated monthly, so if you did not get
- this disk directly from the P(s)L, you should be aware that
- the files in this set may no longer be the current versions.
-
- For a copy of the latest monthly software library newsletter
- and a list of the 1,000+ disks in the library, call or write
-
- The Public (Software) Library
- P.O.Box 35705
- Houston, TX 77235-5705
- (713) 665-7017
-